<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // 函数的2种声明方式：
        //1. 通过function 关键字来声明
        function play() {
            console.log('你好，去哪儿玩儿');
        }
        play();
        play();

        //2.匿名函数（把函数赋值给了变量）     变量名（）
        let eat = function (menu) {
            console.log('今晚吃' + menu);
        }
        eat('烤鱼');

        //3.箭头函数
        let run = (address) => {
            console.log(`来俺们${address}跑一圈`);
        }
        run('范县');
    </script>
</body>

</html>